export class NetWork {


    static checkIsLogin() {
        if (uni.getStorageSync('userInfo')) {
            // console.log("登录")
            return true
        } else {
            uni.navigateTo({
                url: "/pages/public/login/login",
                success: res => {
                },
                fail: () => {
                },
                complete: () => {
                }
            });
            return false;
        }

    }
}
